package com.atguigu.gmall.seckill.service;

import com.atguigu.gmall.model.activity.SeckillGoods;

import java.util.List;

public interface SeckillCacheService {
    //保存当天的秒杀商品
    void cacheSaveGoods(List<SeckillGoods> goods);

    List<SeckillGoods> getTodaySeckillGoodsFromCache(String format);

    /**
     * 获取某个秒杀商品的详细数据
     * @param skuId
     * @return
     */
    SeckillGoods getGoodsDetail(Long skuId);

    void syncLocalCache(List<SeckillGoods> goods);
}
